package com.digua.tank;

import java.util.Random;

public enum Dir {

    LEFT, UP, RIGHT, DOWN ;

    public static Dir getRandomDir(Random random) {
        Dir[] values = Dir.values();
        return values[random.nextInt(4)];
    }

}
